package cn.wmw.xyy.feign;

import cn.wmw.result.JsonResult;
import cn.wmw.xyy.fallback.CourseUserLearnFeignClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-course",path = "courseUserLearn",contextId = "courseUserLearnClient",fallbackFactory = CourseUserLearnFeignClientFallbackFactory.class)
public interface  CourseUserLearnFeignClient {
    @RequestMapping(value = "/getByCourseId/{courseId}/{loginId}",method = RequestMethod.GET)
    public JsonResult getByCourseId(@PathVariable("courseId")Long courseId,@PathVariable("loginId")Long loginId);
}
